package com.imti.mall.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imti.mall.model.oms.pojo.OmsOrder;
import com.imti.mall.model.oms.pojo.OmsOrderOperateHistory;
import com.imti.mall.model.oms.query.OmsOrderListParam;
import com.imti.mall.model.oms.vo.OmsOrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface OmsOrderMapper extends BaseMapper<OmsOrder> {

    List<OmsOrder> fetchOrderList(@Param("params") Map<String,Object> map);

   int closeOrder(Map<String,Object> map);

   int deleteOrder(List<Integer> idList);


    OmsOrderDetail getOrderDetails(Integer orderId);

}
